package com.fhz.kotlinmvvm.di

import com.fhz.kotlinmvvm.api.FengServiceApi
import com.fhz.kotlinmvvm.utils.RetrofitManager
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

/**
 * 时间:2023/9/14
 * @author Mr.Feng
 * 简述: TODO
 */
@Module
@InstallIn(SingletonComponent::class)
class HttpMoudle {

    @Provides
    @Singleton
    fun provideFengServiceApi() : FengServiceApi{
        return RetrofitManager.getRetrofit().create(FengServiceApi::class.java)
    }

}